package com.miguo.view.listener;


public class CheckClick {
    private static long lastTime;

    private CheckClick() {
    }

    public static boolean isDoubleClick(long time) {
        boolean flag = false;
        long timeDiffer = System.currentTimeMillis() - lastTime;
        if (timeDiffer < time) {
            flag = true;
        }
        lastTime = System.currentTimeMillis();
        return flag;
    }
}